package com.zhu.ttwords.presenter;

import com.zhu.ttwords.TTWORDS;
import com.zhu.ttwords.model.ISettingModel;
import com.zhu.ttwords.model.SettingModel;
import com.zhu.ttwords.view.activity.ISettingActivity;

/**
 * Created by KnightYe on 2015/4/10.
 */
public class SettingPresenter {
    ISettingActivity activity;
    ISettingModel model;

    public SettingPresenter(ISettingActivity activity) {
        this.model = new SettingModel();
        this.activity = activity;
    }

    public void setGroup(int group) {
        TTWORDS.getAppSetting().setGroup(group);
    }

    public void resetGroup() {
        TTWORDS.getAppSetting().setGroup(TTWORDS.DEFAULT_STUDY_GROUP);
        activity.resetGroup();
    }

}
